package com.assess.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("assess_indicator")
@ApiModel(value = "AssessIndicator", description = "评估-指标树节点")
public class AssessIndicator {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("父节点ID，根节点为NULL")
    private Long parentId;

    @ApiModelProperty("根节点ID，便于整棵树查询")
    private Long rootId;

    @ApiModelProperty("方案/项目ID，可为空用于区分不同方案")
    private Long schemeId;

    @ApiModelProperty("指标名称")
    private String name;

    @ApiModelProperty("指标编码（唯一）")
    private String code;

    @ApiModelProperty("是否叶子：true是 false否")
    private Boolean isLeaf;

    @ApiModelProperty("同级排序号（从小到大）")
    private Integer orderNum;

    @ApiModelProperty("状态：1启用 0停用")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间", example = "2025-01-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty("更新人")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间", example = "2025-01-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty("删除标识：0正常 1删除")
    private Integer delFlag;
}


